package com.client.smartauction;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class StartActivity extends Activity {
	Intent intent;
	private String mId;
	private String mPassWord;
	private EditText ac_Id;
	private EditText ac_PassWord;
	private Button ac_Login;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_start);
	    
	    ac_Id = (EditText) findViewById(R.id.ID);
	    ac_PassWord = (EditText) findViewById(R.id.PassWord);
	    ac_Login = (Button) findViewById(R.id.Login);
	    
	    ac_Login.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
			    intent = new Intent(StartActivity.this,MainActivity.class);
			    intent.putExtra("ID", ac_Id.getText().toString());
			    intent.putExtra("PassWord", ac_PassWord.getText().toString());
			    startActivity(intent);

				
			}
		});

	    
	   
	
	    // TODO Auto-generated method stub
	}

}
